<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>非Props特性：父组件传值的属性值在子组件中未定义</title>
</head>

<body>
    <div id="root">
        <child content="wangjunl"></child>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script>
        Vue.component('child', {
            // props:['content'],
            template: "<div @click='handleClick'>{{content}}</div>",
            methods: {
                handleClick: function () {
                    console.log(typeof (this.content));
                }
            }
        })
        var app = new Vue({
            el: "#root"
        })
    </script>
</body>

</html>